package ae.pcfc.cldos.online.common.tscdb.dao.provider;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;
import org.hibernate.criterion.Restrictions;

import ae.pcfc.cldos.online.common.dao.GenericDAO;
import ae.pcfc.cldos.online.common.tscdb.dao.TTScEmirateCityDAO;
import ae.pcfc.cldos.online.common.tscdb.domain.TTscEmirateCity;

public class TTscEmirateCityDAOImpl extends GenericDAO implements TTScEmirateCityDAO {
	
	@SuppressWarnings("unchecked")
	public List<TTscEmirateCity> getEmirateCityByEmirateCode(String emirateCode) {
		DetachedCriteria criteria = DetachedCriteria.forClass(TTscEmirateCity.class);
		criteria.add(Restrictions.eq(TTscEmirateCity.EMIRATE_CITY_CODE, emirateCode));
		return (List<TTscEmirateCity>)getListByCriteria(criteria);
	}
}
	